<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
<script src="../pengxuan.js"></script>
<style>
body{ height:2000px;}
.right,.left{width:120px;height:200px;background:#eee;border:1px solid #ccc; position:fixed;top:200px;_position:absolute;_top:expression((document.documentElement.clientHeight-this.offsetHeight)/2+document.documentElement.scrollTop)}
.right{right:0;}
.left{left:0;}
/*清除ie6下抖动*/
*html{background-image:url(blank:about);background-attachment:fixed;}
</style>
<script>
window.onload=function(){
//	var left=getClass('left')[0];
//	var right=getClass('right')[0];
//	var cw=document.documentElement.clientWidth;
//	var ch=document.documentElement.clientHeight;
//	left.style.left=0;
//	left.style.top=(ch-left.offsetHeight)/2+'px';
//	right.style.right=0;
//	right.style.top=(ch-right.offsetHeight)/2+'px';
//	window.onscroll=function(){
//		if(document.documentElement && document.documentElement.scrollTop){
//		left.style.top=(ch-left.offsetHeight)/2+document.documentElement.scrollTop+'px';
//		right.style.top=(ch-right.offsetHeight)/2+document.documentElement.scrollTop+'px';	
//		}else if(document.body){
//		left.style.top=(ch-left.offsetHeight)/2+document.body.scrollTop+'px';
//		right.style.top=(ch-right.offsetHeight)/2+document.body.scrollTop+'px';			
//		}
//	};	
};
</script>
</head>

<body>

<div class="left">

</div>
<div class="right">

</div>
</body>
</html>
